package com.example.domain.sysuser.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class LoginDTO {

    @NotBlank(message = "账户名不能为空")
    @Size(min = 5,max = 10,message ="账户名最短长度为5位，最长为10位")
    private String userAccount;

    @NotBlank(message = "密码不能为空")
    @Size(min = 1,max = 10)
    private String password;
}
